]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-icon: Remove unused fields
authorJonas Ådahl <jadahl@gmail.com>
Thu, 4 May 2017 07:45:41 +0000 (15:45 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 14 Jul 2017 13:01:48 +0000 (21:01 +0800)
They were set but then never accessed.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

src/st/st-icon.c

index 5fc91a4f64a9a492becb5ea9d2599c052b924ba8..8fd82d51253f3c6bca5654bb187d998410be957a 100644 (file)
@@ -55,8 +55,6 @@ struct _StIconPrivate
   GIcon        *fallback_gicon;
 
   CoglPipeline *shadow_pipeline;
-  float         shadow_width;
-  float         shadow_height;
   StShadow     *shadow_spec;
 };
 
@@ -267,8 +265,6 @@ st_icon_init (StIcon *self)
   self->priv->prop_icon_size = -1;
 
   self->priv->shadow_pipeline = NULL;
-  self->priv->shadow_width = -1;
-  self->priv->shadow_height = -1;
 }
 
 static void
@@ -286,8 +282,6 @@ st_icon_update_shadow_pipeline (StIcon *icon)
                                     &width, &height);
 
      priv->shadow_pipeline = _st_create_shadow_pipeline_from_actor (priv->shadow_spec, priv->icon_texture);
-     priv->shadow_width = width;
-     priv->shadow_height = height;
    }
 }